﻿using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using WJ.DataSender.Service.Models;
using WJ.DataSender.Service.Models.ConfigModel;

namespace WJ.DataSender.Service
{
    public interface IMessageHandle<T, U> where T : IModel where U : IResultModel
    {
        /// <summary>
        /// 平台的地址
        /// </summary>
        public string PlatformUrl { get; set; }

        /// <summary>
        /// 平台的名称
        /// </summary>
        public string PlatformName { get; set; }
        /// <summary>
        /// 停止发送数据
        /// </summary>
        public bool StopSend { get; set; }

        public Task<U> SendMessageAsync(HttpMethod method,T message);
        public Task<U> PostAsync(string jsonStr);
        public Task<U> GetAsync();
        public object ReciveMessage();

    }
}
